package com.centriole.service.workflow.service.parse.component;

/**
 *  连接线 封装对象 ，对应json数据中的  "lines":{ ... }
 *  功   能：
 *  创建人：陈默晗
 *  时   间：2018年1月3日下午2:39:51
 */
public class Line {

    private String id;
    private String name;
    private String type;
    private String from;
    private String to;

    public Line(){}

    public Line(String id, String name, String type, String from, String to) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.from = from;
        this.to = to;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }


    @Override
    public String toString() {
        return "Line{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", from='" + from + '\'' +
                ", to='" + to + '\'' +
                '}';
    }
}
